/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * CajeraRegistro.java
 *
 * Created on 20-may-2011, 22:03:14
 */

package GUI;

import Interfaz.Interfaz;
import javax.swing.ImageIcon;

/**
 *
 * @author Administrador
 */
public class CajeraRegistro extends javax.swing.JFrame {

    /** Creates new form CajeraRegistro */
	private Interfaz laInterfaz;

    public CajeraRegistro (Interfaz laInterfaz) {
		this.laInterfaz=laInterfaz;
		initComponents();
		this.setLocationRelativeTo(null); // Cmabiar icono de java en ventana
       this.setIconImage(new ImageIcon("src/imagenes/marketplus2.png").getImage());
		
	}


    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jTNombre = new javax.swing.JTextField();
        jTApellido = new javax.swing.JTextField();
        jTRIFCI = new javax.swing.JTextField();
        jTTelefono = new javax.swing.JTextField();
        jTEmail = new javax.swing.JTextField();
        jTDireccion = new javax.swing.JTextField();
        jBActualizar = new javax.swing.JButton();
        jBContinuar = new javax.swing.JButton();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jComboBox1 = new javax.swing.JComboBox();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jBBuscar = new javax.swing.JButton();
        jDateChooser1 = new com.toedter.calendar.JDateChooser();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setMinimumSize(new java.awt.Dimension(415, 450));
        setResizable(false);
        getContentPane().setLayout(null);

        jLabel1.setText("Nombre:");
        getContentPane().add(jLabel1);
        jLabel1.setBounds(20, 90, 80, 14);

        jLabel2.setText("Apellido:");
        getContentPane().add(jLabel2);
        jLabel2.setBounds(20, 120, 80, 14);

        jLabel3.setText("RIF/CI:");
        getContentPane().add(jLabel3);
        jLabel3.setBounds(20, 150, 80, 14);

        jLabel4.setText("Telefono:");
        getContentPane().add(jLabel4);
        jLabel4.setBounds(20, 240, 80, 14);

        jLabel5.setText("E-mail:");
        getContentPane().add(jLabel5);
        jLabel5.setBounds(20, 270, 80, 14);

        jLabel6.setText("Direccion:");
        getContentPane().add(jLabel6);
        jLabel6.setBounds(20, 300, 70, 14);

        jTNombre.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTNombreActionPerformed(evt);
            }
        });
        getContentPane().add(jTNombre);
        jTNombre.setBounds(110, 90, 190, 20);

        jTApellido.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTApellidoActionPerformed(evt);
            }
        });
        getContentPane().add(jTApellido);
        jTApellido.setBounds(110, 120, 190, 20);

        jTRIFCI.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTRIFCIActionPerformed(evt);
            }
        });
        getContentPane().add(jTRIFCI);
        jTRIFCI.setBounds(110, 150, 190, 20);
        getContentPane().add(jTTelefono);
        jTTelefono.setBounds(110, 240, 190, 20);

        jTEmail.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTEmailActionPerformed(evt);
            }
        });
        getContentPane().add(jTEmail);
        jTEmail.setBounds(110, 270, 190, 20);
        getContentPane().add(jTDireccion);
        jTDireccion.setBounds(110, 300, 190, 20);

        jBActualizar.setText("Actualizar");
        getContentPane().add(jBActualizar);
        jBActualizar.setBounds(110, 330, 100, 40);

        jBContinuar.setText("Continuar");
        jBContinuar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBContinuarActionPerformed(evt);
            }
        });
        getContentPane().add(jBContinuar);
        jBContinuar.setBounds(220, 330, 90, 40);

        jLabel7.setFont(new java.awt.Font("Tempus Sans ITC", 3, 15));
        jLabel7.setText("Registro Cliente");
        getContentPane().add(jLabel7);
        jLabel7.setBounds(140, 40, 130, 20);

        jLabel8.setText("Sexo:");
        getContentPane().add(jLabel8);
        jLabel8.setBounds(20, 180, 70, 14);

        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Femenino", "Masculino" }));
        getContentPane().add(jComboBox1);
        jComboBox1.setBounds(110, 180, 190, 20);

        jLabel9.setText("Fecha Nac:");
        getContentPane().add(jLabel9);
        jLabel9.setBounds(20, 210, 70, 14);

        jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/marketplus.png"))); // NOI18N
        getContentPane().add(jLabel10);
        jLabel10.setBounds(10, 0, 94, 80);

        jLabel11.setFont(new java.awt.Font("Tahoma", 0, 10));
        jLabel11.setText("RIF: J-122231245          Desarrollado por: Group Delivery");
        getContentPane().add(jLabel11);
        jLabel11.setBounds(70, 380, 320, 20);

        jBBuscar.setText("Buscar");
        getContentPane().add(jBBuscar);
        jBBuscar.setBounds(310, 150, 90, 23);
        getContentPane().add(jDateChooser1);
        jDateChooser1.setBounds(110, 210, 190, 20);

        pack();
    }// </editor-fold>//GEN-END:initComponents

	private void jTNombreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTNombreActionPerformed
		// TODO add your handling code here:
	}//GEN-LAST:event_jTNombreActionPerformed

	private void jTRIFCIActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTRIFCIActionPerformed
		// TODO add your handling code here:
	}//GEN-LAST:event_jTRIFCIActionPerformed

	private void jTApellidoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTApellidoActionPerformed
		// TODO add your handling code here:
	}//GEN-LAST:event_jTApellidoActionPerformed

	private void jTEmailActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTEmailActionPerformed
		// TODO add your handling code here:
	}//GEN-LAST:event_jTEmailActionPerformed

	private void jBContinuarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBContinuarActionPerformed
		// TODO add your handling code here:
		RegistroPedidoCajera irRegistroPedidoCajera=new RegistroPedidoCajera(laInterfaz);
		irRegistroPedidoCajera.setVisible(true);
		this.dispose();






	}//GEN-LAST:event_jBContinuarActionPerformed

    /**
    * @param args the command line arguments
    */
    

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jBActualizar;
    private javax.swing.JButton jBBuscar;
    private javax.swing.JButton jBContinuar;
    private javax.swing.JComboBox jComboBox1;
    private com.toedter.calendar.JDateChooser jDateChooser1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JTextField jTApellido;
    private javax.swing.JTextField jTDireccion;
    private javax.swing.JTextField jTEmail;
    private javax.swing.JTextField jTNombre;
    private javax.swing.JTextField jTRIFCI;
    private javax.swing.JTextField jTTelefono;
    // End of variables declaration//GEN-END:variables

}
